<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/css/layui.css">
    <link rel="stylesheet" href="/css/dp01.css">
    <script src="/js/jquery-3.7.1.min.js"></script>

</head>
<body>
<div class="container">
    <!-- 标题 -->
    <div class="layui-row">//行
        <div class="layui-col-xs12">//列
            <h1 style="text-align: center">学生信息管理</h1>
        </div>
    </div>
    <!-- 加号按钮 -->
    <div class="layui-row">
        <div class="layui-col-xs12 toolbar">
            <button type="button" class="layui-btn layui-btn-sm layui-btn-normal"
                    onclick="showStudentDlg();return false;">
                <i class="layui-icon layui-icon-addition"></i>
            </button>
        </div>
    </div>
    <!--表-->
    <div class="layui-row">
        <!--表头-->
        <div class="layui-col-xs12">
            <table class="layui-table" lay-even>
                <thead>
                <tr>
                    <th>id</th>
                    <th>姓名</th>
                    <th>性别</th>
                    <th>年龄</th>
                    <th>学号</th>
                    <th>编辑</th>
                </tr>
                </thead>
                <!--学生信息-->
                <tbody id="studentTb">
                </tbody>
            </table>
        </div>

        <!-- 表单 -->
        <form class="layui-form dlgcontainer" id="studForm" style="display:none">
            <div class="demo-reg-container">

                <!-- id -->
                <div class="layui-form-item" id="formId">
                    <div class="layui-row">
                        <div class="layui-col-xs12">
                            <div class="layui-input-wrap">
                                <div class="layui-input-prefix">
                                    <i class="layui-icon layui-icon-cellphone"></i>
                                </div>
                                <input type="text" name="id" value="" lay-verify="required|phone" placeholder="ID" lay-reqtext="请填写id" autocomplete="off" class="layui-input" id="id">
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 学号 -->
                <div class="layui-form-item">
                    <div class="layui-input-wrap">
                        <div class="layui-input-prefix">
                            <i class="layui-icon layui-icon-vercode"></i>
                        </div>
                        <input type="text" name="sno" value="" lay-verify="required" placeholder="学号" lay-reqtext="请填写学号" autocomplete="off" class="layui-input">
                    </div>
                </div>

                <!-- 姓名 -->
                <div class="layui-form-item">
                    <div class="layui-input-wrap">
                        <div class="layui-input-prefix">
                            <i class="layui-icon layui-icon-password"></i>
                        </div>
                        <input type="text" name="name" value="" lay-verify="required" placeholder="姓名" autocomplete="off" class="layui-input" id="name">
                    </div>
                </div>

                <!-- 性别 -->
                <div class="layui-form-item">
                    <label class="layui-form-label">性别</label>
                    <div class="layui-input-block">
                        <input type="radio" name="sex" value="1" title="男" checked>
                        <input type="radio" name="sex" value="2" title="女">
                    </div>
                </div>

                <!-- 年龄 -->
                <div class="layui-form-item">
                    <div class="layui-input-wrap">
                        <div class="layui-input-prefix">
                            <i class="layui-icon layui-icon-username"></i>
                        </div>
                        <input type="text" name="age" value="" lay-verify="required" placeholder="年龄" autocomplete="off" class="layui-input" lay-affix="clear">
                    </div>
                </div>

                <!-- 确定按钮 -->
                <div class="layui-form-item">
                    <button class="layui-btn layui-btn-fluid" lay-submit lay-filter="stu-dlg" id="btnOK">确定</button>
                </div>

            </div>
        </form>
    </div>


</div>
<script src="/js/layui.js"></script>
<script src="/pagejs/dp01.js"></script>
</body>
</html>
